<?php
session_start();
	include('../controller/functions.php');
	User::connection();


	$userArr	= array('admin','student','teacher');
	if(!in_array($_SESSION['user'],$userArr)) {
	User::validSession();

}
if ($_GET['q'] == 'logout') 
{
	User::user_logout();
	header("location:../login_r.php");

}

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>

	<link rel="stylesheet" href="../css/style2.css" type="text/css" charset="utf-8" />
    <link rel="stylesheet" href="../css/front.css" type="text/css" charset="utf-8" />
    	<link type="text/css" href="../css/demo.css" rel="stylesheet" />
         <link rel="stylesheet" href="../css/general.css" type="text/css" charset="utf-8" />
   <!--validate field and design
    <script src='script/validate.js' type='text/javascript'></script>
 	<link rel='stylesheet' href='css/style.css' type='text/css' media='screen'>
    -->
</head>
<body>

 <div id="page">
<div id="wrapper">
        
        		   <div class="header_top" id="header_top"> </div>
  </div>
  <div class="header2"></div> 
	<div class="header"><!--open logo -->
		  </div><!--end header -->
	<!-- close logo-->
<!-- hide the client inquiries php-->
    <?php
    echo '<div id="nav">';
    echo '<div class="underlinemenu">';
	include('menu_view.php');
	echo '</div>';
    echo '</div>';
	?>
    <div id="header_in"> <!--open header -->
    <p> </p>
    <? User::showUser(); ?>
    </div>
       <div id="body"> <!--open body -->
    
	 <div id="sidebar"> 
       <!--  <div id="chef_ind">open chef -->
        <div id="welcome"> <!--open welcome -->
           <!-- <h2 class="guilded"></h2> -->
        </div> <!--close welcome-->

<? echo '<p class="more">';
echo '';
 
   require('sideBar.php');
    
echo'</p>';
?>

        </div>
        
     <!-- </div>close left -->
      
      <div id="content"> 
      <div class="desriptionHeader"> <!--open right-->
      <div id="container">
    
         <div class="post3"><h1>Update Profile</h1> </div>
      
            <div class="desriptionHeader"> <!--open right-->
       <div class="postbg"><!--open booking -->
   
        <p> </p>
        <p> </p>
   
<?php
switch($_SESSION['user']):
	case 'admin': 	include('editprofa.php');
					break;
	case 'teacher': include('editproft.php');
					break;
	case 'student': include('editprofs.php');
					break;
	endswitch;

?>
</div><!--close desc -->
   
        
         </div> <!--close container-->
   			
	  </div><!--close booking -->
   </div><!--close desc -->
    	</div> <!--close right-->
      <div class="clear">&nbsp;</div>
 <!-- footer-->
 <?php 
	  echo '<div id="footer">';
     include('footer_view.php');
      echo '</div>';	
	  ?>

    </div><!-- close body-->
</div><!-- close page-->


</body>
</html>



	

